<?php
    require_once("fck.php") ;
    if(!empty($_POST)){
        $arrParam = $_POST;
        $attach = $_FILES['attach'];
        $dirUpload = 'files/';
        @copy($attach['tmp_name'], $dirUpload . $attach['name']);
        include('send.php');
    }
?>
<html>
<head>
    <title>PHPMailer training by ZendVN Group</title>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <link href="css/styles.css" media="screen" rel="stylesheet" type="text/css" >
</head>
<body>
<div id="content-load"></div>

<div id="container">
    <h1>PHPMailer training by ZendVN Group</h1>
    <div class="form">
    <form method="post" action="" id="contact-us" >
        <div class="input-box">
            <label>Name:</label>
            <input type="text" name="name" style="width: 100%"></input>
       
        </div>
        <div class="input-box">
            <label>Email:</label>
            <input type="text" name="email" style="width: 100%"></input>
       
        </div>
        <div class="input-box">
            <label>Title:</label>
            <input type="text" name="title" style="width: 100%"></input>
       
        </div>
       
        <div class="input-box">
            <label>Message:</label>
            <?php
                //5. Tao FCKeditor
                echo $oFCKeditor->Create() ;
            ?>
       
        </div>   
        <div class="input-box">
            <label>Attach:</label>
            <input type="file" name="attach"></input>
        </div>
        <div class="submit">
            <input type="submit" value="Submit">
        </div>
    </form>
    </div>
</div>

</body>
</html>